//
//  Extension+UIBarButtonItem.swift
//  SinaWeibo
//
//  Created by 王朝阳 on 2016/10/23.
//  Copyright © 2016年 wangzhaoyang. All rights reserved.
//

import UIKit
extension UIBarButtonItem{
    
    convenience init(setHighlightedImgName: String? = nil,title: String? = nil, target: Any?, action: Selector) {
        self.init()
        
        //创建按钮
        let button = UIButton(setHighlightedImgName: setHighlightedImgName,title: title, target: target, action: action)
        
        self.customView = button
            
        }
        

}
